require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'

platform :ios, '12.5'

target 'CovidShield' do
  use_unimodules!(exclude: ['unimodules-face-detector-interface','expo-constants','expo-file-system','expo-image-loader','unimodules-app-loader','unimodules-camera-interface','unimodules-constants-interface','unimodules-file-system-interface','unimodules-sensors-interface','unimodules-task-manager-interface'])
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])

  permissions_path = '../node_modules/react-native-permissions/ios'
  pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications.podspec"

  # https://github.com/expo/expo/issues/11736#issuecomment-833891364
  # thanks @brentvatne

  # Compile this from source rather than using prebuilt xcframework.
  # Alternatively, set the `EXPO_USE_SOURCE=1` env var to disable prebuilds for
  # all modules.
  $ExpoUseSources = [
    'expo-barcode-scanner',
  ]

  target 'CovidShieldTests' do
    inherit! :complete
    # Pods for testing
  end
end
